package com.panshi.po;

import com.panshi.vo.UserMemberVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 857
 * @since 2020-07-29
 */
@Data
@ApiModel(value="QaAnswer映射类", description="")
public class Answer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回答表ID")
    private Long id;

    @ApiModelProperty(value = "回答人ID")
    private Long userId;

    @ApiModelProperty(value = "问题的ID")
    private Long questionId;

    @ApiModelProperty(value = "回答内容")
    private String content;

    @ApiModelProperty(value = "简介")
    private String introduce;

    @ApiModelProperty(value = "图片地址")
    private String photoPath;

    @ApiModelProperty(value = "回答时间")
    private Date createTime;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "发布时间显示")
    private String publicDate;

    @ApiModelProperty(value = "点赞量")
    private Integer raiseNum;

    @ApiModelProperty(value = "点踩量")
    private Integer downNum;

    @ApiModelProperty(value = "评论量")
    private Integer commentNum;

    @ApiModelProperty(value = "状态:0-下架,1-上架")
    private Integer status;

    @ApiModelProperty(value = "删除;0-删除,1-未删除")
    private Integer deleted;

    @ApiModelProperty(value = "用户属性映射")
    private UserMemberVO userMemberVO;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;
}
